Finding ID | Version | Rule ID | IA Controls | Severity |
---|---|---|---|---|
V-72853 | PGS9-00-000700 | SV-87505r1_rule | Medium |
Description |
---|
If the system were to allow any user to make changes to software libraries, those changes might be implemented without undergoing the appropriate testing and approvals that are part of a robust change management process. Accordingly, only qualified and authorized individuals must be allowed to obtain access to information system components for purposes of initiating changes, including upgrades and modifications. Unmanaged changes that occur to the database software libraries or configuration can lead to unauthorized or compromised installations. |
STIG | Date |
---|---|
PostgreSQL 9.x Security Technical Implementation Guide | 2017-01-20 |
Check Text ( C-72987r2_chk ) |
---|
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA. As the database administrator (shown here as "postgres"), check the permissions of configuration files for the database: $ sudo su - postgres $ ls -la ${PGDATA?} If any files are not owned by the database owner or have permissions allowing others to modify (write) configuration files, this is a finding. As the server administrator, check the permissions on the shared libraries for PostgreSQL: $ sudo ls -la /usr/pgsql-9.5 $ sudo ls -la /usr/pgsql-9.5/bin $ sudo ls -la /usr/pgsql-9.5/include $ sudo ls -la /usr/pgsql-9.5/lib $ sudo ls -la /usr/pgsql-9.5/share If any files are not owned by root or have permissions allowing others to modify (write) configuration files, this is a finding. |
Fix Text (F-79295r1_fix) |
---|
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA. As the database administrator (shown here as "postgres"), change the ownership and permissions of configuration files in PGDATA: $ sudo su - postgres $ chown postgres:postgres ${PGDATA?}/postgresql.conf $ chmod 0600 ${PGDATA?}/postgresql.conf As the server administrator, change the ownership and permissions of shared objects in /usr/pgsql-9.5/*.so $ sudo chown root:root /usr/pgsql-9.5/lib/*.so $ sudo chmod 0755 /usr/pgsql-9.5/lib/*.so As the service administrator, change the ownership and permissions of executables in /usr/pgsql-9.5/bin: $ sudo chown root:root /usr/pgsql-9.5/bin/* $ sudo chmod 0755 /usr/pgsql-9.5/bin/* |